
<template>
<!-- 工程结算台账入口文件 -->
<div></div>
</template>

<script>
import { mapState } from 'vuex'
//此文件为入口文件根据用户机构id决定应该去往那个页面
export default {
    computed: {
        ...mapState(['userInfo']),
    },
    mounted () {
        //将用户机构id提供给后端,用于确定当前登录用户是属于那种类型
        // this.userInfo.orgInfo.orgId
        // '集团层': 1,
        // '分子公司层': 2,
        // '经理部有承建分布': 3,
        // '经理部无承建分布': 4,
        // '外包方合同': 5,
        // '合同结算详细': 6,
        // 模拟后端返回类型
        const userType = 1
        //路由
        const urlObj = {
            1: '/projectSettlementAccountGroupLevel',
            2: '/projectSettlementBranchAndManagementDepartment',
            3: '/projectSettlementBranchAndManagementDepartment',
            4: '/projectSettlementAccountManagerHasNoConstructionContract',
            5: '/projectSettlementAccountOutsourcerContract',
            6: '/projectSettlementAccountContractSettlementDetails',
        }
        this.$router.push({
            path: urlObj[userType]
        })
    }
}
</script>

<style lang="scss" scoped>
</style>
